//
//  MyFamilyApplyCell.m
//  AILock
//
//  Created by 谭亚明 on 2020/6/28.
//  Copyright © 2020 tym. All rights reserved.
//

#import "MyFamilyApplyCell.h"
#import "UIImageView+YPImage.h"
@implementation MyFamilyApplyCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.cancelBtn.layer.cornerRadius = 5;
    self.cancelBtn.layer.borderColor = rgba(223, 223, 223).CGColor;
    self.cancelBtn.layer.borderWidth = 1;
}

-(void)setApplyModel:(ApplyforModel *)applyModel{
    _applyModel = applyModel;
    self.titleLab.text = [NSString stringWithFormat:@"您申请加入%@",applyModel.familyName?applyModel.familyName:@""];
    [self.headImage yp_setImageUlr:[applyModel getheadImage] placeHolder:@"icon_home3"];
}

+(CGFloat)cellForHeight{
    return 70;
}

+(NSString*)identifier{
    return @"MyFamilyApplyCell";
}

-(IBAction)cancelApplysAction:(id)sender{
    
    if (self.cancelApplyBlock) {
        self.cancelApplyBlock(self.applyModel.applyid);
    }
}

@end
